package com.jackchong.utils

import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer

/**
 * author : chong.huang
* create : 5/28/21
 * desc   :
 */
open class JNotNullLiveData<T> : MutableLiveData<T> {

    constructor(): super()

    constructor(value: T): super(value)

    override fun observe(owner: LifecycleOwner, observer: Observer<in T>) {
        super.observe(owner, observer)
    }

    override fun getValue(): T? {
        return super.getValue()
    }
}